/*
 * 办公/公告分类
 *
 * @Author:    天青飞扬
 * @Wechat:    18576228047
 * @Email:     1787585212@qq.com
 * @Date:      2024-09-06 20:46:03
 */

import { postRequest, getRequest } from '/@/lib/axios';

export const noticeCategoryApi = {

  // 公告分类-分页查询
  getNoticeCategoryPage(params) {
    return getRequest('@/api/office/noticeCategory/getNoticeCategoryPage', params);
  },

  // 公告分类-获取全部
  getAllNoticeCategoryList() {
    return getRequest('@/api/office/noticeCategory/getAllNoticeCategoryList');
  },

  // 公告分类-获取详情
  getNoticeCategoryInfo(categoryId) {
    return getRequest(`@/api/office/noticeCategory/getNoticeCategoryInfo/${categoryId}`);
  },

  // 公告分类-添加
  createNoticeCategory(data) {
    return postRequest('@/api/office/noticeCategory/createNoticeCategory', data);
  },

  // 公告分类-修改
  updateNoticeCategory(categoryId, data) {
    return postRequest(`@/api/office/noticeCategory/updateNoticeCategory/${categoryId}`, data);
  },

  // 公告分类-删除
  deleteNoticeCategory(categoryId) {
    return postRequest(`@/api/office/noticeCategory/deleteNoticeCategory/${categoryId}`);
  },

  // 公告分类-批量删除
  batchDeleteNoticeCategories(categoryIds) {
    return postRequest('@/api/office/noticeCategory/batchDeleteNoticeCategories', categoryIds);
  },
};
